function pageStart(url){
    //alert($("#currentPage").text());
    //alert('${pageUtils.currPage},${pageUtils.pageSize},${pageUtils.totalPage}');
    var element = $("#pagination1");
    var options = {
        bootstrapMajorVersion:3, //对应的bootstrap版本
        currentPage: $("#currentPage").text(), //当前页数，这里是用的EL表达式，获取从后台传过来的值
        numberOfPages: 10, //每页页数
        totalPages: $("#totalPage").text(), //总页数，这里是用的EL表达式，获取从后台传过来的值
        shouldShowPage:true,//是否显示该按钮
        itemTexts: function (type, page, current) {//设置显示的样式，默认是箭头
            switch (type) {
                case "first":
                    return "首页";
                case "prev":
                    return "上一页";
                case "next":
                    return "下一页";
                case "last":
                    return "末页";
                case "page":
                    return page;
            }
        },
        //点击事件
        onPageClicked: function (event, originalEvent, type, page) {
            location.href = "/" + url + "!findByPage.action?currPage=" + page;
        }
    };
    element.bootstrapPaginator(options);
}

function pageStart2(url){
    //alert($("#currentPage").text());
    //alert('${pageUtils.currPage},${pageUtils.pageSize},${pageUtils.totalPage}');
    var element = $("#pagination2");
    var options = {
        bootstrapMajorVersion:3, //对应的bootstrap版本
        currentPage: $("#currentPage2").text(), //当前页数，这里是用的EL表达式，获取从后台传过来的值
        numberOfPages: 5, //每页页数
        totalPages: $("#totalPage2").text(), //总页数，这里是用的EL表达式，获取从后台传过来的值
        shouldShowPage:true,//是否显示该按钮
        itemTexts: function (type, page, current) {//设置显示的样式，默认是箭头
            switch (type) {
                case "first":
                    return "&lt;&lt;";
                case "prev":
                    return "&lt;";
                case "next":
                    return "&gt;";
                case "last":
                    return "&gt;&gt;";
                case "page":
                    return page;
            }
        },
        //点击事件
        onPageClicked: function (event, originalEvent, type, page) {
            location.href = "/" + url + "!findByPage.action?currPage=" + page;
        }
    };
    element.bootstrapPaginator(options);
}